package com.wf.mock.app.mina.portal;

import lombok.extern.log4j.Log4j;

import org.apache.mina.core.service.IoHandlerAdapter;
import org.apache.mina.core.session.IoSession;

@Log4j
public class PortalClientHandler extends IoHandlerAdapter {

	public void sessionOpened(IoSession session) throws Exception {
		System.out.println("sessionOpened: Thread:" + Thread.currentThread().getName() + "+++"
				+ session.getLocalAddress());
	}

	public void messageReceived(IoSession session, Object message) throws Exception {
		System.out.println(" messageReceived : Thread:" + Thread.currentThread().getName() + " msg:" + message + "+++"
				+ session.getLocalAddress());
	}

	public void messageSent(IoSession session, Object message) throws Exception {
		System.out.println(" messageSent: Thread:" + Thread.currentThread().getName() + "msg:" + message + "+++"
				+ session.getLocalAddress());
	}

}
